﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XQ.RequestOfficeSupplies.DAL
{
    public class DataContext : DbContext
    {
        public DataContext()
           : base("name=RequestOfficeSuppliesEntities")
        {
        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            throw new UnintentionalCodeFirstException();
        }
        public virtual DbSet<Sys_Boundary> Sys_Boundary { get; set; }
        public virtual DbSet<Sys_Buttons> Sys_Buttons { get; set; }
        public virtual DbSet<Sys_Departments> Sys_Departments { get; set; }
        public virtual DbSet<Sys_DicCategory> Sys_DicCategory { get; set; }
        public virtual DbSet<Sys_Dics> Sys_Dics { get; set; }
        public virtual DbSet<Sys_Errlogs> Sys_Errlogs { get; set; }
        public virtual DbSet<Sys_logs> Sys_logs { get; set; }
        public virtual DbSet<Sys_Menu_Buttons> Sys_Menu_Buttons { get; set; }
        public virtual DbSet<Sys_Menus> Sys_Menus { get; set; }
        public virtual DbSet<Sys_Role_Menu_Btns> Sys_Role_Menu_Btns { get; set; }
        public virtual DbSet<Sys_Roles> Sys_Roles { get; set; }
        public virtual DbSet<Sys_User_Roles> Sys_User_Roles { get; set; }
        public virtual DbSet<Sys_Users> Sys_Users { get; set; }
        public virtual DbSet<Upload> Upload { get; set; }
    }
}
